package team.yidong.fenda.controller;

import net.sf.json.JSONArray;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import team.yidong.fenda.service.QuestionUrlService;

/**
 * Created by xuanlong on 2017/10/31.
 */
@Controller
public class QuestionUrlController {
    @Autowired
    QuestionUrlService questionUrlService;

    @RequestMapping("/findQuestionUrl")
    @ResponseBody
    public JSONArray findQuestionUrl(@RequestParam Integer questionId) {
        return questionUrlService.findQuestionUrl(questionId);
    }
}
